﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class ScrollBarDemo : Form
    {
        public ScrollBarDemo()
        {
            InitializeComponent();
        }

        private void hsclFoneSize_ValueChanged(object sender, EventArgs e)
        {
            int fontSize;
            fontSize = hsclFoneSize.Value;
            txtFoneSize.Font = new System.Drawing.Font("微软黑体", fontSize);
        }
    }
}
